package com.aaa.web.dao.carrecycledao;

import com.aaa.entity.BackRecycle;
import com.aaa.web.commons.CarRecycleQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @program: battery
 * @description: 车辆回收
 * @author: liangyongzhen
 * @create: 2018-12-25 13:12
 **/
@Mapper
@Component
public interface CarRecycleDao {

    /**获取所有申请回收的车辆*/
    List<Map> getAllCarList();

    /**获取数据表的数据条数*/
    Integer getCarListCount();

    /**通过手机号来查找到回收申请单*/
    List<Map> getCarListByTel(@Param("telephone") String telephone);

    Integer getCarListCount(@Param("telephone") String telephone);

    /**修改价格*/
    void updatePrice(CarRecycleQuery query);
    /**拒绝申请*/
    void refuseApply(CarRecycleQuery query);
    /**完成申请*/
    void dealApply(CarRecycleQuery query);

    /**更新时间*/
    void updateTime(CarRecycleQuery query);

    /**查询历史*/
    List<Map> getReCycleDetail(CarRecycleQuery query);

    /**历史条数*/
    Integer getCarHistoryCount();

    /**根据手机号获取条数*/
    List<Map> getCarHistoryByTel(@Param("telephone") String telephone);

    Integer getCarHistoryCount(@Param("telephone") String telephone);


}
